Make sure title_bar_with is initialized
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jan 2014 22:56:44 +0000 (17:56 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jan 2014 22:58:44 +0000 (17:58 -0500)
With a hidden custom title, we failed to initialize
the title_bar_width variables.

gtk/gtkheaderbar.c

index 1a83126c3f7248ede099b726048cc19d164bc67d..96261847652950c4ccc657f676ee301f2bb366a6 100644 (file)
@@ -991,6 +991,9 @@ gtk_header_bar_size_allocate (GtkWidget     *widget,
       i++;
     }
 
+  title_minimum_size = 0;
+  title_natural_size = 0;
+
   if (priv->custom_title &&
       gtk_widget_get_visible (priv->custom_title))
     {